package com.axcbd.demo.repository;

import com.axcbd.demo.model.Camera;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface CameraRepository  extends JpaRepository<Camera,Integer> {
    //Optional<Camera> findByCameraid(int cameraid);

    Camera findByCameraid(int cameraid);
    Optional<Camera> findByUserid(int userid);
}
